home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19981211-19990422 / 000446_news@watsun.cc.columbia.edu _Mon Apr 19 10:22:11 1999.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Return-Path: <news@watsun.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id KAA20355
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Mon, 19 Apr 1999 10:22:11 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id KAA28265
  7.     for kermit.misc@watsun.cc.columbia.edu; Mon, 19 Apr 1999 10:07:46 -0400 (EDT)
  8. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  9. From: manning@execpc.com (Steve Manning)
  10. Subject: Re: Can kermit take its configuration from stdin? (Unix)
  11. Date: Mon, 19 Apr 1999 13:59:10 GMT
  12. Organization: ExecPC Internet - Milwaukee, WI
  13. Message-ID: <7ffcre$34v@newsops.execpc.com>
  14. To: kermit.misc@watsun.cc.columbia.edu
  15.  
  16. Mark Sapiro <msapiro@value.net> wrote:
  17.  
  18. >Frank da Cruz wrote:
  19. >>>>
  20. >In article <7f60oo$ihc$1@nnrp1.dejanews.com>,
  21. > <john_cosimano@my-dejanews.com> wrote:
  22. >>>>
  23. >
  24. >Yeah, that's what I'm doing now. I have a bunch of configuration files, and I
  25. >wrote my wrapper script so that kermit gets called like: `kermit -y
  26. >/usr/lib/kermit/configs/some_config_file`. The problem I was looking to solve
  27. >is that if I want to make a change to the configuration files, I now have 256
  28. >files on which to make the change. I figured if I could make kermit get it's
  29. >configuration from stdin, I would only have one file...
  30. >
  31. >Oh, well, there is more than one way to skin a cat
  32. ><<<
  33. >
  34. >Indeed.  If you can describe the actual problem you are trying to solve,
  35. >maybe I can be more helpful.
  36. >
  37. >- Frank
  38. ><<<
  39. >
  40. >John's original post said "The only configuration directive that
  41. >needs to change from file to file is the set line /dev/ttyC#."
  42. >
  43. >If this is in fact the case, it is hard to see why simply removing the
  44. >set line directive from the configuration file and using the -l option
  45. >on the command line won't work.
  46. >
  47. >However, if there is really a need to have kermit read a dynamically
  48. >built initialization file, why not just build it in the wrapper script
  49. >and then write it to say /tmp/process-number.ksc and then invoke kermit
  50. >with "kermit -y /tmp/process-number.ksc".
  51.  
  52. The generated script file could be as short at two lines: 
  53.  
  54. 1. "set line /dev/whatever"
  55. 2. "take /path/to/kermit/lib/master.ksc"
  56.  
  57. Using this approach, you could also actually go through the excercise of
  58. creating all 256 scripts one time and then never have to worry about them again.
  59. Make any changes to master.ksc.
  60.  
  61. I use this sort of approach with some kermit scripts that start up telnet
  62. sessions.  I actually have some generic scripts for attaching to applications
  63. and another script that just does a "set host".  To set up a PC at a new site I
  64. copy the basic template scripts along with the site-specific script and
  65. everything just works.
  66.  
  67. (Yes, we do have a bulk license.  Best money we've spent.  Apart from our DSL
  68. connection to the 'net.)
  69.  
  70. Good luck.
  71.  
  72. Steve Manning
  73. Systems Administrator
  74. Mega Marts Inc.
  75. Milwaukee, WI  USA
  76. manning@execpc.com